import requests
# 发送get请求 访问tpshop商城
resp = requests.get(url="http://tpshop-test.itheima.net/Home/Goods/search.html?",
                    params={"q":"iPhone"})

print("响应结果:",resp.text)
